<?php
$title = $_POST['title'];
$content = $_POST["content"];

file_put_contents('data.txt',"title:".$title.",content:".$content."\n", FILE_APPEND);
echo "<a href='test.html'>CLICK TO START A NEW POST</a><br>";
echo "<a href='show.php'>CHECK</a><br>";
echo '<a href="loged.php"> back</a><br>';
echo '<a href="logOut.php"> Log Out('.$_COOKIE['username'].')</a><br>';
?>
